import Dao.MysqlOperate;
import JDBC.ConnDatabase;
import com.jh.ul.Login;
import com.jh.ul.User_Register;
import element.Node;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;

public class Main {
    public static void main(String[] args) throws SQLException, ClassNotFoundException {
        System.out.println("Hello world!");

//        new Login();
        new User_Register();
//        ArrayList<Node> nodes = new ArrayList<>();
//        nodes.add(new Node("employee_id", 205));
//        nodes.add(new Node("position", "医生"));
//        nodes.add(new Node("name", "江浩"));
//        nodes.add(new Node("login_time", "2024-01-04 09:30:00"));
//        nodes.add(new Node("permissions", 5555));
//        MysqlOperate.add("user_info",nodes);
//        MysqlOperate.alter("user_info",nodes,new Node("employee_id",205));

//        ArrayList<Object[]> a=MysqlOperate.find("user_info",nodes,"where employee_id = 202");
//        System.out.println(a);
//        for (Object[] row : a) {
//            for (Object value : row) {
//                System.out.print(value + " ");
//            }
//            System.out.println();
//        }

    }
}